<style>
    .table .new,.notice{
        font-weight: bold;
        color:#D65824;
    }
	.table-bordered{
		border-top:1px solid #ccc;
	}
</style>
<?php
if(!empty($lists)){
?>
<table class="table table-striped table-bordered dataTable" id="data-table" width="100%" aria-describedby="data-table_info" style="width: 100%;">
    <?php if(!empty($lists)){?>
    <thead>
        <tr role="row">
            <th width="5%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="STT" style="width: 50px;">STT</th>
            <th width="5%" class="sorting_desc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Username" style="width: 280px;"><?php echo $this->lang->line('name');?></th>
            <th width="5%" class="sorting_desc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Username" style="width: 280px;"><?php echo $this->lang->line('phone');?></th>
            <th width="20%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Code game" style="width: 181px;"><?php echo $this->lang->line('updatedby');?></th>
            <th width="10%" class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Tiền" style="width: 248px;"></th>
        </tr>
    </thead>
    <?php }?>
    <tbody role="alert" aria-live="polite" aria-relevant="all">
        <?php
        if(!empty($lists)){
            foreach($lists AS $key => $value){
                if($key%2 == 0){
                    $old = 'new';
                } else {
                    $old = 'old';
                }

                echo '<tr class="'.$old.'">';
                echo '<td class="">'.++$key.'</td>';
                echo '<td class="">'.$value->hoten.'</td>';
                echo '<td class="">'.implode("<br/>", json_decode($value->phone)).'</td>';
                echo '<td class="">'.$value->username.'</td>';
                echo '<td class=""><a href="'.base_url().'auth/booking/add?customerid='.$value->customerID.'">Tiếp tục</a></td>';
                echo '</tr>';
            }
        }
        ?>
    </tbody>
</table>
<?php
} else {
	echo '<tr>Không tìm thấy thông tin.<a href="/auth/listcustomers/index/add.html">Click vào đây khởi tạo thông tin ngay</a>.</tr>';
}
?>